package com.example.gcjjhd.agriculture.repository;

import com.example.gcjjhd.agriculture.entity.Alert;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface AlertRepository extends JpaRepository<Alert, Integer> {
    List<Alert> findByStatus(String status);
    List<Alert> findByDeviceId(String deviceId);
    List<Alert> findByLevel(String level);
}